package com.heima.pet_shop;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Pet> pets = new ArrayList<>();
        PetShop petShop = new PetShop(pets);
        Pet dog1 = new Dog("玩",3);
        Pet dog2 = new Dog("的",3);
        Pet dog3 = new Dog("开",3);
        Pet dog4 = new Dog("心",3);
        Pet cat1 = new Cat("天",2);
        Pet cat2 = new Cat("天",3);
        Pet cat3 = new Cat("如",2);
        Pet cat4 = new Cat("此",2);
        petShop.addPet(dog1);
        petShop.addPet(dog2);
        petShop.addPet(dog3);
        petShop.addPet(dog4);
        petShop.addPet(cat1);
        petShop.addPet(cat2);
        petShop.addPet(cat3);
        petShop.addPet(cat4);
        petShop.playWithPets();
    }
}
